﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="CharacterView.aspx.cs" Inherits="AMS.DD35.WebMVP.Views.CharacterView" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        View Character
    </h2>
    <asp:ValidationSummary ID="CharacterSaveValidationSummary" runat="server" CssClass="failureNotification" 
            ValidationGroup="CharacterSaveValidationGroup"/>
    <asp:Label ID="lblSaveMessage" runat="server" CssClass="failureNotification" />

    <div class="characterInfo">
        <asp:HiddenField ID="hidUserName" runat="server" />
        <asp:HiddenField ID="hidCharacterID" runat="server" />
        <p>
            <asp:Label ID="lblCharacterName" runat="server" AssociatedControlID="txtCharacterName">Character Name:</asp:Label>
            <asp:TextBox ID="txtCharacterName" runat="server" CssClass="textEntry"></asp:TextBox>
            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="txtCharacterName" 
                    CssClass="failureNotification" ErrorMessage="Character Name is required." ToolTip="Character Name is required." 
                    ValidationGroup="CharacterSaveValidationGroup">*</asp:RequiredFieldValidator>
        </p>
        <p>
            <asp:Label ID="lblBaseStr" runat="server" AssociatedControlID="txtBaseStr">Base Strength:</asp:Label>
            <asp:TextBox ID="txtBaseStr" runat="server" CssClass="textEntry"></asp:TextBox>
            <asp:RequiredFieldValidator ID="BaseStrRequired" runat="server" ControlToValidate="txtBaseStr" 
                    CssClass="failureNotification" ErrorMessage="Base Strength is required." ToolTip="Base Strength is required." 
                    ValidationGroup="CharacterSaveValidationGroup">*</asp:RequiredFieldValidator>
        </p>
        <p>
            <asp:Label ID="lblBaseDex" runat="server" AssociatedControlID="txtBaseDex">Base Dexterity:</asp:Label>
            <asp:TextBox ID="txtBaseDex" runat="server" CssClass="textEntry"></asp:TextBox>
            <asp:RequiredFieldValidator ID="BaseDexRequired" runat="server" ControlToValidate="txtBaseDex" 
                    CssClass="failureNotification" ErrorMessage="Base Dexterity is required." ToolTip="Base Dexterity is required." 
                    ValidationGroup="CharacterSaveValidationGroup">*</asp:RequiredFieldValidator>
        </p>
        <p>
            <asp:Label ID="lblBaseCon" runat="server" AssociatedControlID="txtBaseCon">Base Constitution:</asp:Label>
            <asp:TextBox ID="txtBaseCon" runat="server" CssClass="textEntry"></asp:TextBox>
            <asp:RequiredFieldValidator ID="BaseConRequired" runat="server" ControlToValidate="txtBaseCon" 
                    CssClass="failureNotification" ErrorMessage="Base Constitution is required." ToolTip="Base Constitution is required." 
                    ValidationGroup="CharacterSaveValidationGroup">*</asp:RequiredFieldValidator>
        </p>
        <p>
            <asp:Label ID="lblBaseInt" runat="server" AssociatedControlID="txtBaseInt">Base Intelligence:</asp:Label>
            <asp:TextBox ID="txtBaseInt" runat="server" CssClass="textEntry"></asp:TextBox>
            <asp:RequiredFieldValidator ID="BaseIntRequired" runat="server" ControlToValidate="txtBaseInt" 
                    CssClass="failureNotification" ErrorMessage="Base Intelligence is required." ToolTip="Base Intelligence is required." 
                    ValidationGroup="CharacterSaveValidationGroup">*</asp:RequiredFieldValidator>
        </p>
        <p>
            <asp:Label ID="lblBaseWis" runat="server" AssociatedControlID="txtBaseWis">Base Wisdom:</asp:Label>
            <asp:TextBox ID="txtBaseWis" runat="server" CssClass="textEntry"></asp:TextBox>
            <asp:RequiredFieldValidator ID="BaseWisRequired" runat="server" ControlToValidate="txtBaseWis" 
                    CssClass="failureNotification" ErrorMessage="Base Wisdom is required." ToolTip="Base Wisdom is required." 
                    ValidationGroup="CharacterSaveValidationGroup">*</asp:RequiredFieldValidator>
        </p>
        <%--Inherent Ability Gains--%>
        <p>
            <asp:Label ID="lblBaseCha" runat="server" AssociatedControlID="txtBaseCha">Base Charisma:</asp:Label>
            <asp:TextBox ID="txtBaseCha" runat="server" CssClass="textEntry"></asp:TextBox>
            <asp:RequiredFieldValidator ID="BaseChaRequired" runat="server" ControlToValidate="txtBaseCha" 
                    CssClass="failureNotification" ErrorMessage="Base Charisma is required." ToolTip="Base Charisma is required." 
                    ValidationGroup="CharacterSaveValidationGroup">*</asp:RequiredFieldValidator>
        </p>
        <p>
            <asp:Label ID="lblEthicalAlignment" runat="server" AssociatedControlID="ddlEthicalAlignment">Ethical Alignment:</asp:Label>
            <asp:DropDownList ID="ddlEthicalAlignment" runat="server" AutoPostBack="true" />
        </p>
        <p>
            <asp:Label ID="lblMoralAlignment" runat="server" AssociatedControlID="ddlMoralAlignment">Moral Alignment:</asp:Label>
            <asp:DropDownList ID="ddlMoralAlignment" runat="server" AutoPostBack="true" />
        </p>
        <p>
            <asp:Label ID="lblRace" runat="server" AssociatedControlID="ddlRace">Race:</asp:Label>
            <asp:DropDownList ID="ddlRace" runat="server" />
            <asp:RequiredFieldValidator ID="RaceRequired" runat="server" ControlToValidate="ddlRace" 
                    CssClass="failureNotification" ErrorMessage="Race is required." ToolTip="Race is required." 
                    ValidationGroup="CharacterSaveValidationGroup">*</asp:RequiredFieldValidator>
        </p>
        <p>
            <asp:Label ID="lblDeity" runat="server" AssociatedControlID="ddlDeity">Deity:</asp:Label>
            <asp:DropDownList ID="ddlDeity" runat="server" AutoPostBack="true" />
        </p>
        <p>
            <asp:Label ID="lblSEx" runat="server" AssociatedControlID="ddlSex">Sex:</asp:Label>
            <asp:DropDownList ID="ddlSex" runat="server" AutoPostBack="true" />
        </p>
        <p>
            <asp:Label ID="lblHeight" runat="server" AssociatedControlID="txtHeight">Height:</asp:Label>
            <asp:TextBox ID="txtHeight" runat="server" CssClass="textEntry"></asp:TextBox>
            <asp:Label ID="lblHeightUnits" runat="server" AssociatedControlID="txtHeight">ins</asp:Label>
            <asp:RequiredFieldValidator ID="HeightRequired" runat="server" ControlToValidate="txtHeight" 
                    CssClass="failureNotification" ErrorMessage="Height is required." ToolTip="Height is required." 
                    ValidationGroup="CharacterSaveValidationGroup">*</asp:RequiredFieldValidator>
        </p>
        <p>
            <asp:Label ID="lblWeight" runat="server" AssociatedControlID="txtWeight">Weight:</asp:Label>
            <asp:TextBox ID="txtWeight" runat="server" CssClass="textEntry"></asp:TextBox>
            <asp:Label ID="lblWeightUnits" runat="server" AssociatedControlID="txtWeight">lbs</asp:Label>
            <asp:RequiredFieldValidator ID="WeightRequired" runat="server" ControlToValidate="txtWeight" 
                    CssClass="failureNotification" ErrorMessage="Weight is required." ToolTip="Weight is required." 
                    ValidationGroup="CharacterSaveValidationGroup">*</asp:RequiredFieldValidator>
        </p>
        <p>
            <asp:Label ID="lblHairColor" runat="server" AssociatedControlID="txtHairColor">Hair Color:</asp:Label>
            <asp:TextBox ID="txtHairColor" runat="server" CssClass="textEntry"></asp:TextBox>
            <asp:RequiredFieldValidator ID="HairColorRequired" runat="server" ControlToValidate="txtHairColor" 
                    CssClass="failureNotification" ErrorMessage="Hair Color is required." ToolTip="Hair Color is required." 
                    ValidationGroup="CharacterSaveValidationGroup">*</asp:RequiredFieldValidator>
        </p>
        <p>
            <asp:Label ID="lblEyeColor" runat="server" AssociatedControlID="txtEyeColor">Eye Color:</asp:Label>
            <asp:TextBox ID="txtEyeColor" runat="server" CssClass="textEntry"></asp:TextBox>
            <asp:RequiredFieldValidator ID="EyeColorRequired" runat="server" ControlToValidate="txtEyeColor" 
                    CssClass="failureNotification" ErrorMessage="Eye Color is required." ToolTip="Eye Color is required." 
                    ValidationGroup="CharacterSaveValidationGroup">*</asp:RequiredFieldValidator>
        </p>
        <%--Classes--%>
        <%--Skills--%>
        <%--Feats--%>
        <p>
            <asp:Label ID="lblExperience" runat="server" AssociatedControlID="txtExperience">Experience:</asp:Label>
            <asp:TextBox ID="txtExperience" runat="server" CssClass="textEntry"></asp:TextBox>
        </p>
        <p>
            <asp:Label ID="lblCopper" runat="server" AssociatedControlID="txtCopper">Copper:</asp:Label>
            <asp:TextBox ID="txtCopper" runat="server" CssClass="textEntry"></asp:TextBox>
        </p>
        <p>
            <asp:Label ID="lblSilver" runat="server" AssociatedControlID="txtSilver">Silver:</asp:Label>
            <asp:TextBox ID="txtSilver" runat="server" CssClass="textEntry"></asp:TextBox>
        </p>
        <p>
            <asp:Label ID="lblGold" runat="server" AssociatedControlID="txtGold">Gold:</asp:Label>
            <asp:TextBox ID="txtGold" runat="server" CssClass="textEntry"></asp:TextBox>
        </p>
        <p>
            <asp:Label ID="lblPlatinum" runat="server" AssociatedControlID="txtPlatinum">Platinum:</asp:Label>
            <asp:TextBox ID="txtPlatinum" runat="server" CssClass="textEntry"></asp:TextBox>
        </p>
    <p class="submitButton">
        <asp:Button ID="btnSave" runat="server" CommandName="Save" Text="Save Character" ValidationGroup="CharacterSaveValidationGroup"
            OnClick="HandleBtnSave_Click"/>
        <asp:Button ID="btnQuit" runat="server" CommandName="Quit" Text="Quit Without Saving"
            OnClick="HandleBtnQuit_Click"/>
    </p>
</div>
</asp:Content>
